package magicboard.geometry
{
	import flash.geom.Rectangle;

	public class Rect extends Rectangle
	{
		// --------------------------------------------------------------------------------------------
		public function Rect(x:Number=0, y:Number=0, width:Number=0, height:Number=0){
			super(x, y, width, height);
		}

		// --------------------------------------------------------------------------------------------
		public function get diagonalLength():Number{
			return Math.sqrt(width*width + height*height);
		}
		
	}
}